package se.statifyme.server.services;

import java.util.Date;

import javax.ws.rs.Path;

import se.statifyme.server.declaration.ServiceType;
import se.statifyme.server.entities.EconomyRecord;
import se.statifyme.server.store.EconomyStore;
import se.statifyme.shared.RecordServiceConstants;

import com.google.inject.Inject;

@Path("/" + RecordServiceConstants.REST_PATH + "/economy")
@ServiceType(displayName = "Economy")
public class EconomyService extends RecordServiceImpl<EconomyRecord> {

	@Inject
	private EconomyStore store;

	public EconomyStore getStore() {
		return store;
	}

	public void setStore(EconomyStore store) {
		this.store = store;
	}
	
	@Override
	protected EconomyRecord createExampleEntity() {
		EconomyRecord result = new EconomyRecord();
		result.setDate(new Date());
		result.setId("abc123");
		result.setAmount(124);
		result.setCategory("Lunch");
		result.setDescription("With grandma at McDonalds");
		return result;
	}

}
